libxl: events: Makefile builds internal unit tests
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 3 Feb 2014 14:17:46 +0000 (14:17 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 6 Feb 2014 14:21:04 +0000 (14:21 +0000)
commiteb5cdc52756eb892c7da6b27c5a80d86d9df278a
treea75544fea559b25107b3b6672b3192e74a15d627
parent4727e87352f59150eece4f1deb94495589898cf6
libxl: events: Makefile builds internal unit tests

We provide a new LIBXL_TESTS facility in the Makefile.
Also provide some helpful common routines for unit tests to use.

We don't want to put the weird test case entrypoints and the weird
test case code in the main libxl.so library.  Symbol hiding prevents
us from simply directly linking the libxl_test_FOO.o in later.  So
instead we provide a special library libxenlight_test.so which is used
only locally.

There are not yet any test cases defined; that will come in the next
patch.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
tools/libxl/Makefile
tools/libxl/test_common.c [new file with mode: 0644]
tools/libxl/test_common.h [new file with mode: 0644]